<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.creawor.km.util.CatcheUtil;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'clearcache.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <%
    try{
     	CatcheUtil.flushCache();
    }catch(Exception e){
    	out.write("刷新缓存失败！");
    }
    out.write("刷新缓存成功！");
     %>
     <%
  report.ConConfig conc=null;
  	try{
  		conc=report.ConConfig.getInst();
  	}catch(Exception e){
  		out.print("获取数据库配置文件出错！");
  	}
  	try{
  		conc.init();
  	}catch(Exception e){
  		out.print("初始化出错！");
  	}
  	try{
  		out.print(conc.getUrl()+"<br>");
  		out.print(conc.getUserName()+"<br>");
  	}catch(Exception e){
  		out.print("初始化出错！");
  	}
  	
   %>
  </body>
</html>
